<template>
  <h1>B应用 /b页面</h1>
  <div class="card" id="appId">
    <button @click="navigateTo">跳到A页面</button>
    <button @click="navigateToBa">跳到appB/a页面</button>
  </div>

</template>

<script setup>
import { ref } from "vue";
import { useRouter } from "vue-router";
const router = useRouter();
function navigateTo() {
  router.push("/a");
}
function navigateToBa() {
  // console.log(window.location.href);
  console.log((window.location.href = "http://localhost:2666/appA/a"));
}

const count = ref(0);
function handleClick() {
  count.value++;
}
</script>

<style scoped>
.read-the-docs {
  color: #888;
}
button {
  color: blue;
}
</style>
